package com.kotlin.hxh.helper

import android.annotation.TargetApi
import android.content.Context
import android.os.Build
import android.transition.ChangeBounds
import android.transition.ChangeImageTransform
import android.transition.ChangeTransform
import android.transition.TransitionSet
import android.util.AttributeSet

/**
 * @author huxh
 * @date 2018/12/20.
 */
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
class DetailTransition : TransitionSet {
    constructor() {
        init()
    }

    constructor(context: Context, attri: AttributeSet) : super(context, attri) {
        init()
    }

    private fun init() {
        setOrdering(TransitionSet.ORDERING_TOGETHER)
        addTransition(ChangeBounds()).addTransition(ChangeTransform()).addTransition(ChangeImageTransform())
    }
}
